<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/tld/importTag.tld" prefix="importTag"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="/WEB-INF/tld/mallutil.tld" prefix="mu" %>
<%@page import="com.yaodian100.core.common.utils.ServerValue"%>
<%@page import="org.apache.commons.lang.math.RandomUtils"%>
<c-rt:set var="hostName" value='<%=request.getServerName()%>'/>
<c-rt:set var="frontHtmlPath" value='<%=ServerValue.getFrontApachePath()%>'/>
<c-rt:set var="frontContentHtmlPath" value='<%=ServerValue.getFrontContentHtmlPath()%>'/>
<c-rt:set var="imgDomain" value='<%=ServerValue.getImgDomain()%>'></c-rt:set>
<script type="text/javascript" charset="UTF-8" src="/js/jquery.flash.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/jquery.random.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/index3.js"></script>
<script type="text/javascript">
if((!window.location.href.match(/hpp=ms/i))&&navigator.userAgent.match(/Android|iPhone|BlackBerry|UCWEB/i)){
	window.location = 'http://m.yaodian100.com';	
}
</script>
<script type="text/javascript" src="${imgDomain}/js/rec.js">
{
"mid":27,
"pid":"home",
"rcat":"<%=ServerValue.getFrontTopCategoryIdList()%>",
<c-rt:if test="${!empty mu:memberId()}">
"uid":"${mu:memberId()}",
</c-rt:if>
"layout":"home"
}
</script>
<script src="/js/jquery.lazyload.yaodian100.js"></script>
<script src="/js/yaodian100_lazyloadIndex.js"></script>
<input type="hidden" value="${imgDomain}" id="imageDomain" />
<div class="ad-leader">
<c-rt:set var="topSpanNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
<c-rt:set var="topSpan"><importTag:static path="${frontContentHtmlPath}IDX/IDX_TOPSPAN_${topSpanNum}.html"/></c-rt:set>
<c-rt:choose>
	<c-rt:when test="${not empty topSpan}">${topSpan}</c-rt:when>
	<c-rt:otherwise>
		<importTag:static path="${frontContentHtmlPath}IDX/IDX_TOPSPAN_1.html"/>
	</c-rt:otherwise>
</c-rt:choose>
</div>
<div class="content">		
	<importTag:static path="${frontContentHtmlPath}IDX/IDX_MAINGOLD_V3.html"/>
  	<c-rt:set var="hotSaleNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="hotSale"><importTag:static path="${frontContentHtmlPath}IDX/IDX_HOTSALE_V3_${hotSaleNum}.html"/></c-rt:set>
	<c-rt:choose>
		<c-rt:when test="${not empty hotSale}">${hotSale}</c-rt:when>
		<c-rt:otherwise>
			<importTag:static path="${frontContentHtmlPath}IDX/IDX_HOTSALE_V3_1.html"/>
		</c-rt:otherwise>
	</c-rt:choose>
	<c-rt:set var="waistLineNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="waistLine"><importTag:static path="${frontContentHtmlPath}IDX/IDX_WAISTLINE_${waistLineNum}.html"/></c-rt:set>
	<div class="barlarge">
	<c-rt:choose>
		<c-rt:when test="${not empty waistLine}">${waistLine}</c-rt:when>
		<c-rt:otherwise>
			<importTag:static path="${frontContentHtmlPath}IDX/IDX_WAISTLINE_1.html"/>
		</c-rt:otherwise>
	</c-rt:choose>
	</div>
	<c-rt:set var="saleTopNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="saleTop"><importTag:static path="${frontContentHtmlPath}IDX/IDX_SALE_V3_TOP_${saleTopNum}.html"/></c-rt:set>
	<c-rt:choose>
		<c-rt:when test="${not empty saleTop}">${saleTop}</c-rt:when>
		<c-rt:otherwise><importTag:static path="${frontContentHtmlPath}IDX/IDX_SALE_V3_TOP_1.html"/></c-rt:otherwise>
	</c-rt:choose>
	<c-rt:set var="saleMidNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="saleMid"><importTag:static path="${frontContentHtmlPath}IDX/IDX_SALE_V3_MID_${saleMidNum}.html"/></c-rt:set>
	<c-rt:choose>
		<c-rt:when test="${not empty saleMid}">${saleMid}</c-rt:when>
		<c-rt:otherwise><importTag:static path="${frontContentHtmlPath}IDX/IDX_SALE_V3_MID_1.html"/></c-rt:otherwise>
	</c-rt:choose>
	<c-rt:set var="saleBtmNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="saleBtm"><importTag:static path="${frontContentHtmlPath}IDX/IDX_SALE_V3_BTM_${saleBtmNum}.html"/></c-rt:set>
	<c-rt:choose>
		<c-rt:when test="${not empty saleBtm}">${saleBtm}</c-rt:when>
		<c-rt:otherwise><importTag:static path="${frontContentHtmlPath}IDX/IDX_SALE_V3_BTM_1.html"/></c-rt:otherwise>
	</c-rt:choose>
	<div class="db-banner">
	<c-rt:set var="twinLeftNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="twinLeft"><importTag:static path="${frontContentHtmlPath}IDX/IDX_TWINLEFT_${twinLeftNum}.html"/></c-rt:set>
	<div id="db-bn1">
	<c-rt:choose>
		<c-rt:when test="${not empty twinLeft}">${twinLeft}</c-rt:when>
		<c-rt:otherwise>
			<importTag:static path="${frontContentHtmlPath}IDX/IDX_TWINLEFT_1.html"/>
		</c-rt:otherwise>
	</c-rt:choose>	
	</div>
	<c-rt:set var="twinRightNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="twinRight"><importTag:static path="${frontContentHtmlPath}IDX/IDX_TWINRIGHT_${twinRightNum}.html"/></c-rt:set>
	<div id="db-bn2">
	<c-rt:choose>
		<c-rt:when test="${not empty twinRight}">${twinRight}</c-rt:when>
		<c-rt:otherwise>
			<importTag:static path="${frontContentHtmlPath}IDX/IDX_TWINRIGHT_1.html"/>
		</c-rt:otherwise>
	</c-rt:choose>
	</div>
	</div>	
	<div class="pdcalist">
		<importTag:static path="${frontHtmlPath}${hostName}/pages/IDX/CATEGORY_v4.html"/>
	</div>
</div>
<div class="right-bar">
	<importTag:static path="${frontContentHtmlPath}IDX/NEWS_V3.html"/>
	<importTag:static path="${frontContentHtmlPath}IDX/IDX_TIME_LIMIT_SALE_V3.html"/>
	<div id="brandarea">
		<importTag:static path="${frontHtmlPath}/pages/BRAND/IDX_v4.html"/>
	</div>
	
	<c-rt:set var="rightSmall1Num"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="rightSmall1"><importTag:static path="${frontContentHtmlPath}IDX/IDX_RIGHTSMALL1_${rightSmall1Num}.html"/></c-rt:set>
	<div class="rt-ad">
	<c-rt:choose>
		<c-rt:when test="${not empty rightSmall1}">${rightSmall1}</c-rt:when>
		<c-rt:otherwise>
			<importTag:static path="${frontContentHtmlPath}IDX/IDX_RIGHTSMALL1_1.html"/>
		</c-rt:otherwise>
	</c-rt:choose>
	</div>
	<c-rt:set var="rightSmall2Num"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="rightSmall2"><importTag:static path="${frontContentHtmlPath}IDX/IDX_RIGHTSMALL2_${rightSmall2Num}.html"/></c-rt:set>
	<div class="rt-ad">
	<c-rt:choose>
		<c-rt:when test="${not empty rightSmall2}">${rightSmall2}</c-rt:when>
		<c-rt:otherwise>
			<importTag:static path="${frontContentHtmlPath}IDX/IDX_RIGHTSMALL2_1.html"/>
		</c-rt:otherwise>
	</c-rt:choose>
	</div>
	<c-rt:set var="goldFourNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="goldFour"><importTag:static path="${frontContentHtmlPath}IDX/IDX_GOLDFOUR_V3_${goldFourNum}.html"/></c-rt:set>
	<c-rt:choose>
		<c-rt:when test="${not empty goldFour}">${goldFour}</c-rt:when>
		<c-rt:otherwise>
			<importTag:static path="${frontContentHtmlPath}IDX/IDX_GOLDFOUR_V3_1.html"/>
		</c-rt:otherwise>
	</c-rt:choose>
	<c-rt:set var="weeklyRecommendNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="weeklyRecommend"><importTag:static path="${frontContentHtmlPath}IDX/IDX_WEEKLYRECOMMEND_${weeklyRecommendNum}.html"/></c-rt:set>
	<c-rt:choose>
		<c-rt:when test="${not empty weeklyRecommend}">${weeklyRecommend}</c-rt:when>
		<c-rt:otherwise>
			<importTag:static path="${frontContentHtmlPath}IDX/IDX_WEEKLYRECOMMEND_1.html"/>
		</c-rt:otherwise>
	</c-rt:choose>
	<c-rt:set var="infoNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="info"><importTag:static path="${frontContentHtmlPath}IDX/IDX_INFO_V3_${infoNum}.html"/></c-rt:set>
	<c-rt:choose>
		<c-rt:when test="${not empty info}">${info}</c-rt:when>
		<c-rt:otherwise><importTag:static path="${frontContentHtmlPath}IDX/IDX_INFO_V3_1.html"/></c-rt:otherwise>
	</c-rt:choose>
	<c-rt:set var="broadCastNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="broadCast"><importTag:static path="${frontContentHtmlPath}IDX/IDX_BROADCAST_V3_${broadCastNum}.html"/></c-rt:set>
	<c-rt:choose>
		<c-rt:when test="${not empty broadCast}">${broadCast}</c-rt:when>
		<c-rt:otherwise><importTag:static path="${frontContentHtmlPath}IDX/IDX_BROADCAST_V3_1.html"/></c-rt:otherwise>
	</c-rt:choose>
</div>
<span id="systemTime" style="display:none;"><%=System.currentTimeMillis()/1000%></span>